package cc.rengu.igas.bomp.common.enums;

/**
 * Created by Administrator on 2020/4/13.
 */
public enum WechatCertTypeEnum {

    IDENTIFICATION_TYPE_IDCARD("01", "身份证（限中国大陆居民)"),
    IDENTIFICATION_TYPE_OVERSEA_PASSPORT("03", "护照（限境外人士)"),
    //澳门通行证 统一送香港通行证
    IDENTIFICATION_TYPE_HONGKONG_PASSPORT("06", "中国香港居民-来往内地通行证"),
    IDENTIFICATION_TYPE_TAIWAN_PASSPORT("07", "中国台湾居民-来往大陆通行证 "),
    ;

    private String type;

    private String desc;

    public String getType() {
        return type;
    }

    public String getDesc() {
        return desc;
    }

    WechatCertTypeEnum(String type, String desc) {
        this.type = type;
        this.desc = desc;
    }

    public static String getWechatCertTypeEnumByType(String type) {
        if (null == type || "".equals(type)) {
            return null;
        }

        for (WechatCertTypeEnum wechatCertTypeEnum : WechatCertTypeEnum.values()) {
            if (wechatCertTypeEnum.getType().equals(type)) {
                return wechatCertTypeEnum.name();
            }
        }
        return null;
    }

}


